package com.example.phonestore.service;

import com.example.phonestore.entity.Cart;
import com.example.phonestore.entity.showCart;
import com.example.phonestore.util.JsonResult;

import java.util.List;

public interface CartService {

    JsonResult insertCart(Cart cart);

    List<showCart> getShowCartByUid(Integer uid);

    Integer updateCartNum(Integer cid,Integer uid);

    JsonResult deleteCartOne(Integer cid);

    Integer reduceCartNum(Integer cid,Integer uid);

}
